#   计算从0到4的累加和
sum = 0;
i = 0;
while i < 5:
    sum += i
    i += 1
print('累加和为', sum)
#   计算1到100之间偶数的和
sum2=0
i2=0
while i2<101:
    sum2+=i2
    i2+=2
print('偶数和为',sum2)
